﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ThongTinFile.ascx.cs"
    Inherits="Controls_Template_ThongTinFile" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<script type="text/javascript" src="../../Scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.autosize.js"></script>
<script type="text/javascript">
    function ConfirmDeleteThongTinFile() {
        var check = confirm("Bạn có chắc muốn xóa không ?");
        if (check == true) {
            document.getElementById('<%=hdnCheckConfirm.ClientID %>').value = "yes";
        } else {

        }
    }
</script>
<script type="text/javascript">
    function AutoExpand(tb) {
        tb.style.height = "1px";
        tb.style.height = (1 + tb.scrollHeight) + "px";
    }
</script>
<style type="text/css">
    .redTitle
    {
        color: Red;
        font-weight: bold;
    }
</style>
<div id="content" style="margin-left: 20px">
    <h2 style="text-align: center; color: Blue">
        Thông Tin File</h2>
    <div style="float: right; margin-right: 30px">
        <asp:Button Text="Xóa" ID="btnDeleteThongTinFile" runat="server" class="button" OnClientClick="ConfirmDeleteThongTinFile()"
            OnClick="btnDeleteThongTinFile_Click" Style="display: none" />
        <asp:Button Text="Sửa" ID="btnEditThongTinFile" runat="server" class="button" OnClick="btnEditThongTinFile_Click"
            Style="display: none; right: 90px" />
        <asp:DropDownList ID="drpPermission" AutoPostBack="true" runat="server" Style="display: none"
            OnSelectedIndexChanged="drpPermission_SelectedIndexChanged">
            <asp:ListItem Value="2" Text="Chọn"></asp:ListItem>
            <asp:ListItem Value="0" Text="Public"></asp:ListItem>
            <asp:ListItem Value="1" Text="Private"></asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
    </div>
    <br />
    <asp:Label ID="lblNguoiPhanTich" runat="server" Style="color: Orange"></asp:Label>
    <br />
    <asp:Label ID="lblThanhPhanMalware" runat="server" Style="color: Orange"></asp:Label>
    <br />
    <asp:Label ID="lblTenHamDiet" runat="server" Style="color: Orange"></asp:Label>
    <br />
    <h3 style="color: Red">
        (Dành cho virus lây file không ghi đè toàn bộ PE header)</h3>
    <br />
    <h4 class="redTitle">
        I. Thông tin cơ bản</h4>
    <br />
    <div id="divThongTinCoBan" class="" style="overflow: scroll">
        <asp:GridView ID="gridThongTinCoBan" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridThongTinCoBan_RowCancelling"
            OnRowCommand="gridThongTinCoBan_RowCommand" OnRowDeleting="gridThongTinCoBan_RowDeleting"
            OnRowEditing="gridThongTinCoBan_RowEditing" OnRowUpdating="gridThongTinCoBan_RowUpdating"
            DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDThongTinCoBan" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbNoiDungThongTinCoBan" runat="server" Width="150px" Text='<%#Eval("noidung") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvNoiDungThongTinCoBan" ControlToValidate="tbNoiDungThongTinCoBan"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbNoiDungThongTinCoBan" runat="server" Text='<%#Eval("noidung") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbThongTinThongTinCoBan" Width="520px" runat="server" Text='<%#Eval("thongtin") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvThongTinThongTinCoBan" ControlToValidate="tbThongTinThongTinCoBan"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbThongTinThongTinCoBan" runat="server" Text='<%#Eval("thongtin") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditThongTinCoBan" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeleteThongTinCoBan" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdateThongTinCoBan" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelThongTinCoBan" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetThongTinCoBan" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblNoiDung1" runat="server" Text="Nội dung"></asp:Label><br />
                        <asp:TextBox ID="tbNoiDung1" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblThongTin1" runat="server" Text="Thông tin"></asp:Label><br />
                        <asp:TextBox ID="tbThongTin1" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="520px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitThongTinCoBan" class="button" runat="server" Text="Submit"
                OnClick="btnSubmitThongTinCoBan_Click" />
            <asp:Button ID="btnResetThongTinCoBan" class="button" runat="server" Text="Reset"
                OnClick="btnResetThongTinCoBan_Click" />
        </div>
    </div>
    <h4 class="redTitle">
        II. Thông tin section của virus</h4>
    <br />
    <div id="divSection" class="" style="overflow: scroll">
        <asp:GridView ID="gridSection" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridSection_RowCancelling"
            OnRowCommand="gridSection_RowCommand" OnRowDeleting="gridSection_RowDeleting"
            OnRowEditing="gridSection_RowEditing" OnRowUpdating="gridSection_RowUpdating"
            DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDSection" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Section Name">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbSectionName" runat="server" Width="150px" Text='<%#Eval("name") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvSectionName" ControlToValidate="tbSectionName"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbSectionName" runat="server" Text='<%#Eval("name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Virtual Size">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbVirtualSize" Width="520px" runat="server" Text='<%#Eval("virtualsize") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvVirtualSize" ControlToValidate="tbVirtualSize"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbVirtualSize" runat="server" Text='<%#Eval("virtualsize") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Virtual Address">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbVirtualAddress" Width="520px" runat="server" Text='<%#Eval("virtualaddress") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvVirtualAddress" ControlToValidate="tbVirtualAddress"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbVirtualAddress" runat="server" Text='<%#Eval("virtualaddress") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Raw Size">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbRawSize" Width="520px" runat="server" Text='<%#Eval("rawsize") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvRawSize" ControlToValidate="tbRawSize"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbRawSize" runat="server" Text='<%#Eval("rawsize") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Raw Address">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbRawAddress" Width="520px" runat="server" Text='<%#Eval("rawaddress") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvRawAddress" ControlToValidate="tbRawAddress"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbRawAddress" runat="server" Text='<%#Eval("rawaddress") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Characteristic">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbCharacteristic" Width="520px" runat="server" Text='<%#Eval("characteristic") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvCharacteristic" ControlToValidate="tbCharacteristic"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbCharacteristic" runat="server" Text='<%#Eval("characteristic") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditSection" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeleteSection" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdateSection" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelSection" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetSection" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lbSectionName" runat="server" Text="Section Name"></asp:Label><br />
                        <asp:TextBox ID="tbSectionName" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbVirtualSize" runat="server" Text="Virtual Size"></asp:Label><br />
                        <asp:TextBox ID="tbVirtualSize" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbVirtualAddress" runat="server" Text="Virtual Address"></asp:Label><br />
                        <asp:TextBox ID="tbVirtualAddress" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbRawSize" runat="server" Text="Raw Size"></asp:Label><br />
                        <asp:TextBox ID="tbRawSize" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbRawAddress" runat="server" Text="Raw Address"></asp:Label><br />
                        <asp:TextBox ID="tbRawAddress" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbCharacter" runat="server" Text="Characteristic"></asp:Label><br />
                        <asp:TextBox ID="tbCharacter" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitSection" class="button" runat="server" Text="Submit" OnClick="btnSubmitSection_Click" />
            <asp:Button ID="btnResetSection" class="button" runat="server" Text="Reset" OnClick="btnResetSection_Click" />
        </div>
    </div>
    <h4 class="redTitle">
        III. Thông tin version</h4>
    <br />
    <div id="divVersion" class="" style="overflow: scroll">
        <asp:GridView ID="gridVersion" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridVersion_RowCancelling"
            OnRowCommand="gridVersion_RowCommand" OnRowDeleting="gridVersion_RowDeleting"
            OnRowEditing="gridVersion_RowEditing" OnRowUpdating="gridVersion_RowUpdating"
            DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDVersion" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbNoiDungVersion" runat="server" Width="150px" Text='<%#Eval("noidung") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvNoiDungVersion" ControlToValidate="tbNoiDungVersion"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbNoiDungVersion" runat="server" Text='<%#Eval("noidung") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbThongTinVersion" Width="520px" runat="server" Text='<%#Eval("thongtin") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvThongTinVersion" ControlToValidate="tbThongTinVersion"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbThongTinVersion" runat="server" Text='<%#Eval("thongtin") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditVersion" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeleteVersion" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdateVersion" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelVersion" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetVersion" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lbNoiDung3" runat="server" Text="Nội dung"></asp:Label><br />
                        <asp:TextBox ID="tbNoiDung3" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbThongTin3" runat="server" Text="Thông tin"></asp:Label><br />
                        <asp:TextBox ID="tbThongTin3" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="520px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitVersion" class="button" runat="server" Text="Submit" OnClick="btnSubmitVersion_Click" />
            <asp:Button ID="btnResetVersion" class="button" runat="server" Text="Reset" OnClick="btnResetVersion_Click" />
        </div>
    </div>
    <h4 class="redTitle">
        V. Bảng Import</h4>
    <br />
    <div id="divImport" class="" style="overflow: scroll">
        <asp:GridView ID="gridImport" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridImport_RowCancelling"
            OnRowCommand="gridImport_RowCommand" OnRowDeleting="gridImport_RowDeleting" OnRowEditing="gridImport_RowEditing"
            OnRowUpdating="gridImport_RowUpdating" DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDImport" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbNoiDungImport" runat="server" Width="150px" Text='<%#Eval("noidung") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvNoiDungImport" ControlToValidate="tbNoiDungImport"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbNoiDungImport" runat="server" Text='<%#Eval("noidung") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbThongTinImport" Width="520px" runat="server" Text='<%#Eval("thongtin") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvThongTinImport" ControlToValidate="tbThongTinImport"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbThongTinImport" runat="server" Text='<%#Eval("thongtin") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditImport" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeleteImport" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdateImport" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelImport" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetImport" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lbNoiDung5" runat="server" Text="Nội dung"></asp:Label><br />
                        <asp:TextBox ID="tbNoiDung5" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbThongTin5" runat="server" Text="Thông tin"></asp:Label><br />
                        <asp:TextBox ID="tbThongTin5" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="520px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitImport" class="button" runat="server" Text="Submit" OnClick="btnSubmitImport_Click" />
            <asp:Button ID="btnResetImport" class="button" runat="server" Text="Reset" OnClick="btnResetImport_Click" />
        </div>
    </div>
    <h4 class="redTitle">
        VI. Bảng Export</h4>
    <div id="divExport" class="" style="overflow: scroll">
        <asp:GridView ID="gridExport" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridExport_RowCancelling"
            OnRowCommand="gridExport_RowCommand" OnRowDeleting="gridExport_RowDeleting" OnRowEditing="gridExport_RowEditing"
            OnRowUpdating="gridExport_RowUpdating" DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDExport" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbNoiDungExport" runat="server" Width="150px" Text='<%#Eval("noidung") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvNoiDungExport" ControlToValidate="tbNoiDungExport"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbNoiDungExport" runat="server" Text='<%#Eval("noidung") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbThongTinExport" Width="520px" runat="server" Text='<%#Eval("thongtin") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvThongTinExport" ControlToValidate="tbThongTinExport"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbThongTinExport" runat="server" Text='<%#Eval("thongtin") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditExport" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeleteExport" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdateExport" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelExport" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetExport" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lbNoiDung6" runat="server" Text="Nội dung"></asp:Label><br />
                        <asp:TextBox ID="tbNoiDung6" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbThongTin6" runat="server" Text="Thông tin"></asp:Label><br />
                        <asp:TextBox ID="tbThongTin6" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="520px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitExport" class="button" runat="server" Text="Submit" OnClick="btnSubmitExport_Click" />
            <asp:Button ID="btnResetExport" class="button" runat="server" Text="Reset" OnClick="btnResetExport_Click" />
        </div>
    </div>
    <h4 class="redTitle">
        VII. PE header</h4>
    <div id="divPE" class="" style="overflow: scroll">
        <asp:GridView ID="gridViewPE" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridViewPE_RowCancelling"
            OnRowCommand="gridViewPE_RowCommand" OnRowDeleting="gridViewPE_RowDeleting" OnRowEditing="gridViewPE_RowEditing"
            OnRowUpdating="gridViewPE_RowUpdating" DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDPE" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbNoiDungPE" runat="server" Width="150px" Text='<%#Eval("noidung") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvNoiDungPE" ControlToValidate="tbNoiDungPE"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbNoiDungPE" runat="server" Text='<%#Eval("noidung") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbThongTinPE" Width="520px" runat="server" Text='<%#Eval("thongtin") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvThongTinPE" ControlToValidate="tbThongTinPE"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbThongTinPE" runat="server" Text='<%#Eval("thongtin") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditPE" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeletePE" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdatePE" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelPE" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetPE" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lbNoiDung7" runat="server" Text="Nội dung"></asp:Label><br />
                        <asp:TextBox ID="tbNoiDung7" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lbThongTin7" runat="server" Text="Thông tin"></asp:Label><br />
                        <asp:TextBox ID="tbThongTin7" runat="server" TextMode="MultiLine" onkeyup="AutoExpand(this)"
                            Width="520px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitPE" class="button" runat="server" Text="Submit" OnClick="btnSubmitPE_Click" />
            <asp:Button ID="btnResetPE" class="button" runat="server" Text="Reset" OnClick="btnResetPE_Click" />
        </div>
    </div>
</div>
<div id="divHidden" style="display: none">
    <asp:HiddenField ID="hdnCheckConfirm" runat="server" Value="" />
</div>
